//package com.application.configuration;
//
//import java.lang.reflect.Method;
//
//import org.springframework.cache.CacheManager;
//import org.springframework.cache.annotation.CachingConfigurerSupport;
//import org.springframework.cache.annotation.EnableCaching;
//import org.springframework.cache.interceptor.KeyGenerator;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.context.annotation.Profile;
//import org.springframework.data.redis.cache.RedisCacheManager;
//import org.springframework.data.redis.connection.RedisConnectionFactory;
//import org.springframework.data.redis.core.RedisOperations;
//import org.springframework.data.redis.core.RedisTemplate;
//@Profile("redis")
//@EnableCaching
//@Configuration
//public class CahceConfiguration extends CachingConfigurerSupport {
//	@Override
//	public KeyGenerator keyGenerator() {
//		// TODO Auto-generated method stub
//		return new KeyGenerator() {
//			
//			@Override
//			public Object generate(Object arg0, Method arg1, Object... arg2) {
//				// TODO Auto-generated method stub
//				return null;
//			}
//		};
//	}
//	@Bean
//	public CacheManager redisCacheManager(RedisTemplate<String, Object> redisTemplate){
//		CacheManager cacheManager = new RedisCacheManager(redisTemplate);
//		return cacheManager;
//	}
//	@Bean
//	public RedisTemplate<String, Object> getreRedisTemplate(RedisConnectionFactory connectionFactory){
//		RedisTemplate redisTemplate = new RedisTemplate<String, Object>();
//		redisTemplate.setConnectionFactory(connectionFactory);
//		return redisTemplate;
//	}
//	
//	
//	
//	
//}
